import request from '@/utils/request'
// 查询 组织架构列表
export const companyDepartment = () => {
  return request({
    url: '/company/department'
  })
}
// 获取员工简单列表
export const sysUserSimple = () => {
  return request({
    url: '/sys/user/simple'
  })
}
// 添加组织架构
export const companyDepartmentPost = (data) => {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 删除组织架构
export const companyDepartmentDelete = (id) => {
  return request({
    url: '/company/department/' + id,
    method: 'delete'
  })
}
// 修改组织架构
export const companyDepartmentPut = (data) => {
  return request({
    url: '/company/department/' + data.id,
    method: 'put',
    data
  })
}
